﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Consultant.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Shop.Consultant" %>

<!doctype html>
<html>
<head id="Head1" runat="server">
    <title>咨询管理</title>
    <meta charset="utf-8"/>
    <meta http-equiv="Pragma" content="No-cach"/>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <%: Scripts.Render("~/Scripts/AdminBase") %>


</head>
<body>
<form id="form1" runat="server">
    <table style="width: 100%;" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
        <tr>
            <td style="width: auto">
                <asp:Label ID="lblPath" runat="server"></asp:Label>
            </td>
            <td style="text-align: right; width: auto;">
                &nbsp;
            </td>
        </tr>
    </table>
    <asp:Panel ID="Panel1" runat="server">
        <asp:Repeater ID="Repeater1" runat="server"
                      onitemcommand="Repeater1_ItemCommand">
            <ItemTemplate>
                <table width="100%" border="0" cellspacing="4">
                    <tr>
                        <td style="width: 120px" align="right">
                            网友：
                        </td>
                        <td>
                            <%# Eval("UserName") %><asp:HiddenField ID="hfID" Value='<%# Eval("ID") %>' runat="server"/>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px" align="right">
                            商品：
                        </td>
                        <td>
                            <a href="/ShopShow-<%# Eval("GoodsID") %>.htm" target="_blank"><%# Eval("ContentTitle") %></a>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            咨询内容：
                        </td>
                        <td>
                            <%# Eval("Content") %>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            回复：
                        </td>
                        <td>
                            <%# Eval("ReplyContent") %>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnReply" CommandArgument='<%# Eval("ID") %>' runat="server" Text="回复"
                                        CommandName="Reply" Cssclass="btn btn-default"/>
                            |&nbsp;
                            <asp:Button ID="btnDelete" CommandArgument='<%# Eval("ID") %>' runat="server" Text="删除"
                                        CommandName="Delete" Cssclass="btn btn-default"/>
                            |&nbsp;<asp:CheckBox ID="cbkSelectID" runat="server"></asp:CheckBox>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <table width="100%" border="0" cellspacing="4" style="background-color: #EEEEEE">
                    <tr>
                        <td style="width: 120px" align="right">
                            网友：
                        </td>
                        <td>
                            <%# Eval("UserName") %>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 120px" align="right">
                            商品：
                        </td>
                        <td>
                            <a href="/ShopShow-<%# Eval("GoodsID") %>.htm" target="_blank"><%# Eval("ContentTitle") %></a>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            咨询内容：
                        </td>
                        <td>
                            <%# Eval("Content") %>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            回复：
                        </td>
                        <td>
                            <%# Eval("ReplyContent") %>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnReply" CommandArgument='<%# Eval("ID") %>' runat="server" Text="回复"
                                        CommandName="Reply" Cssclass="btn btn-default"/>
                            |&nbsp;
                            <asp:Button ID="btnDelete" CommandArgument='<%# Eval("ID") %>' runat="server" Text="删除"
                                        CommandName="Delete" Cssclass="btn btn-default"/>
                            |&nbsp;<asp:CheckBox ID="cbkSelectID" runat="server"></asp:CheckBox>
                        </td>
                    </tr>
                </table>
            </AlternatingItemTemplate>
        </asp:Repeater>
        <div class="WorkArea">
            <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="删除选中" OnClientClick=" javascript:return confirm('确定要删除吗？'); "
                        Cssclass="btn btn-default"/>
            &nbsp;
        </div>

        <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging"
                                  SubmitButtonclass="btn btn-default" SubmitButtonText="转向" CustomInfoSectionWidth="200px">
        </WinnerCMS:PageNavigation>

    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server">
        <table style="width: 100%;">
            <tr>
                <td>
                    内容
                </td>
                <td>
                    <asp:Literal ID="L_Content" runat="server"></asp:Literal>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3" style="background-color: ButtonShadow;">
                </td>
            </tr>
            <tr>
                <td>
                    回复
                </td>
                <td>
                    <asp:TextBox ID="txtReplyContent" runat="server" TextMode="MultiLine" Height="200px"
                                 Width="500px">
                    </asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3" style="text-align: center">
                    <asp:Button ID="btnReplyOK" runat="server" Text="确  定" Cssclass="btn btn-default" OnClick="btnReplyOK_Click"/>
                    <asp:Button ID="btnBack" runat="server" Cssclass="btn btn-default" OnClick="btnBack_Click" Text="返回"/>
                </td>
            </tr>
        </table>
    </asp:Panel>
</form>
</body>
</html>